<template>
  <div id="wdzh">
    <ul class="tit">
      <li class="msg">
        <img src="./images/wdzh/nm.png" alt="" />
        <span>您好！{{ pmsg.phone }}</span>
      </li>

      <li class="zh">
        <div>
          <p>当前积分</p>
          <span>{{ pmsg.jf }}</span>
        </div>
        <div>
          <p>我的钱包</p>
          <span>&yen;{{ pmsg.qb }}</span>
        </div>
        <div>
          <router-link class="cz" to="" tag="p">充值有礼>></router-link>
          <span>充值卡兑换</span>
        </div>
      </li>
    </ul>
    <div class="banner">
      <img src="./images/wdzh/xrgl.png" alt="" />
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: 'wdzh',
  computed: {
    ...mapState(['pmsg']),
  },
};
</script>

<style scoped>
.wdzh {
  width: 100%;
  height: 446px;
}
.tit {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
}
.msg {
  width: 40%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.zh {
  flex: 1;
  display: flex;
}
.zh > div {
  flex: 1;
  text-align: center;
}
.zh p {
  font-size: 18px;
  color: #252525;
  margin-bottom: 30px;
}
.zh .cz {
  color: #4b943d;
  cursor: pointer;
}
.zh span {
  font-size: 18px;
  color: #f08200;
}
.banner {
  width: 960px;
  height: 380px;
  overflow: hidden;
}
.banner img {
  width: 100%;
}
</style>
